const {User} = require("../model/model.js");

const UserDao = {
    save(userinfo){
        const user = new User(userinfo);
        return user.save();
    },
    find(condition){
        return User.find(condition);
    },

    findAll(){
        return User.find();
    }
}

module.exports = UserDao;